package Homework;

import java.util.concurrent.ArrayBlockingQueue;

/*1.生产5个 消费5个*/
public class work03 {
    public static void main(String[] args) {
        ArrayBlockingQueue<String> abq = new ArrayBlockingQueue<>(5);
        Cooker c=new Cooker(abq);
        Foodie f=new Foodie(abq);
        try {
            f.join();
        } catch (Exception e) {
            // TODO: handle exception
        }
        c.start();
        f.start();
    }
}
